import { Fragment, createVNode } from "../vnode";

export function renderSlots(slots,key,props) {
    let slot = slots[key]
    if(slot) {
        // slot function
        if(typeof slot === "function") {
            // children 是不可以有数组的
            return createVNode(Fragment,{},slot(props))
        }
    }
    
}